/**
 * @Author: 黄欣睿
 * @Date: 2019/8/14
 * @Last Modified by:   黄欣睿
 * @Last Modified time: 2019-08-14 15:45:00
 */
import axios from '@/api/fetch';
import * as types from './types';
import SERVER from '@/api/server';

// 主页面查询
export const getVehicleMonitor = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/MonitorVehicle`, { params });
// 新增
export const addVehicleMonitor = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/MonitorVehicle`, params);
// 编辑
export const editVehicleMonitor = (params, id) => axios.put(`${SERVER.DMSCLOUD_REPAIR}/MonitorVehicle/${id}`, params);
// 删除
export const deleteVehicleMonitor = id => axios.put(`${SERVER.DMSCLOUD_REPAIR}/MonitorVehicle/deleteMonitorVehicleInfo/${id}`);
// 监控历史查询
export const getMonitorHistory = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/MonitorVehicle/history`, { params });
// 车辆搜索列表
export const getClssList = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/MonitorVehicle/license`, { params });
// 查询操作员
export const getOperator = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/basedata/users/getDealerUser`);
